<?php
include ("../lib/BLL/DmChucVuLopBLL.php");

$chucvulopBLL=new DmChucVuLopBLL();
$kq="";
$id=$_GET['id'];
$chucvulop= new DmChucVuLop();
$arrcvl=$chucvulopBLL->getListChucVuLopByID($id);

if(isset($_POST['sua'])){
			
    $ma=$_POST['suamacvl'];
    $ten=$_POST['suatencvl'];
    $chucvulop->setchucvulop($ma,$ten);
    $rs=$chucvulopBLL->UpdateChucvulop($chucvulop);
    if($rs==1)
        $kq= "Sửa thành công";
    else
        $kq= "Thất bại";
        }
$smarty->assign('kq',$kq);

/////////////////////////////////////////////////

$smarty->assign('arrcvl',$arrcvl);
$smarty->display('nhom3/suacvl.tpl')
?>